import request from '@/utils/request'

export function uploadFile(data) {
  return request({
    url: 'manager/file/upload',
    method: 'post',
    data
  })
}

export function updateFile(data) {
  return request({
    url: 'manager/file/update',
    method: 'post',
    data
  })
}

export function deleteFile(data) {
  return request({
    url: 'manager/file/delete',
    method: 'post',
    data
  })
}

export function fetchFileList(query) {
  return request({
    url: 'manager/file/list',
    method: 'get',
    params: query
  })
}
